package com.oystertech.sportcms.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 队伍表
 *
 * @author Oyster Cheung
 * @version 2023-09-05
 * @TableName team
 * @since 2023-10-10
 */
@TableName(value = "team")
@Data
public class Team implements Serializable {
	@Serial
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * 队伍KEY
	 */
	@TableId(type = IdType.AUTO)
	private Integer keyId;

	/**
	 * 队伍ID
	 */
	private Long id;

	/**
	 * 比赛ID
	 */
	private Integer gamesId;

	/**
	 * 队伍全称
	 */
	private String name;

	/**
	 * 队伍简称
	 */
	private String shortName;

	/**
	 * 领队姓名
	 */
	private String leaderName;

	/**
	 * 领队性别(0女1男)
	 */
	private Integer leaderSex;

	/**
	 * 领队手机号
	 */
	private String leaderPhone;

	/**
	 * 加分
	 */
	private BigDecimal bonus;

	/**
	 * 扣分
	 */
	private BigDecimal deduction;

	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date createTime;

	/**
	 * 最后修改时间
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private Date updateTime;

	/**
	 * 删除时间
	 */
	private Integer deleteTime;
}